home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
fido
/
GMS_1_1_85.lha
/
GMS
/
Rexx
/
GMS_runMailer.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-10-10
|
796b
|
48 lines
/*
* $VER: GMS_RunMailer.rexx 1.1 (9.4.95)
*
*/
options results
signal on error
signal on syntax
parse arg gms_line
if( ~show( 'l', "gms_mailer_rexx.library" ) ) then
do
if( ~addlib( "gms_mailer_rexx.library", 0, -30, 0 ) )then
do
say "Could not open gms_mailer_rexx.library"
exit 10
end
end
if gms_line == '' then signal Usage
call GMS_Mailer_System_Alloc('gms_mailer', gms_line, 'new')
call GMS_Mailer_System_Free('gms_mailer')
call GMS_Mailer_FreeScriptData()
exit 0
Usage:
say 'Usage: rx GMS_RunMailer[.rexx] <line num> '
call GMS_Mailer_FreeScriptData()
exit 0
error:
syntax:
error_text = GMS_Mailer_LastError()
if error_text = '' then error_text = rc ErrorText( rc )
say '| ***BREAK: error at' sigl error_text
call GMS_Mailer_FreeScriptData()
exit rc